<?php
namespace app\admin\controller;

use Db;
use app\model\admin\Employee;
use app\http\Controller;

class Blog extends Controller
{

    protected $middleware = [
        'AdminAuth' 	=> ['except' => ['index'] ],
    ];

    public function index()
    {
        return 'blog/index' ;
    }


    public function employeeList()
    {


        $res =  Db::table('employee')->select();

        return $this->resSuccess('操作成功', $res);


    }




    public function employeeDetail()
    {

        $id =  input('id');

        $res  = Employee::find($id);

//        return [3,4,5];
        return $res;

    }


}
